package com.css.openapi.service.impl;

import cn.hutool.core.util.StrUtil;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.css.openapi.entity.Ptjr;
import com.css.openapi.mapper.PtjrMapper;
import com.css.openapi.service.JrptglService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


/**
 * 接入平台表(Ptjr)表服务实现类
 *
 * @author qinxb
 * @since 2024-08-14 16:21:11
 */
@Slf4j
@Service("JrptglService")
public class JrptglServiceImpl extends ServiceImpl<PtjrMapper, Ptjr> implements JrptglService {

    @Override
    public Ptjr queryJrptByAppid(String appId) {
        if(StrUtil.isBlank(appId))return null;
        return lambdaQuery().select(Ptjr::getGsuuid,Ptjr::getAppkey,Ptjr::getPlatId,Ptjr::getEncrypKey)
                .eq(Ptjr::getGsuuid,appId).one();
    }
}

